import math
a,b=input().strip().split(' ')
a=float(a)
b=float(b)
e=0.0001

def fun(x):
    return 1/(x**2+x**4)


k=0.5
lst=[a, b]

h=b-a
x_list=[a+h/2]

T=0.5*h*(fun(a)+fun(b))

while True:
    h *= 0.5
    new_T=0.5*T+h*sum(fun(i) for i in x_list)
    k*=0.5



    if math.fabs(new_T-T)<e:
        print("%.2f" % new_T)
        break
    T=new_T


    new_x_list=[]
    for i in x_list:
        new_x_list.append(i-0.5*h)
        new_x_list.append(i+0.5*h)
    x_list=new_x_list

